-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 981 Bytes
/
Makefile
File metadata and controls
48 lines (39 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ifeq ($(wildcard config.mk),config.mk)
include config.mk
ifdef WITH_DOCS
first: butt docs
else
first: butt
endif
else
first:
@echo "run './configure' first"
endif
clean:
$(MAKE) -C src clean
dist:
#Make the binary package
$(MAKE) -C src distclean
./configure --static
$(MAKE) -C src
mkdir $(DIST_VER)-linux-bin
cp -R src/butt player_plugins/ ChangeLog README LICENSE KNOWN_BUGS \
install.sh uninstall.sh $(DIST_VER)-linux-bin/
tar -cjf $(DIST_VER)-linux-bin.tar.bz2 $(DIST_VER)-linux-bin
rm -rf $(DIST_VER)-linux-bin
#Make the source package
$(MAKE) -C src distclean
mkdir $(DIST_VER)
cp -R src/ player_plugins/ configure* Makefile ChangeLog KNOWN_BUGS \
INSTALL README LICENSE $(DIST_VER)/
tar -cjf $(DIST_VER)-src.tar.bz2 $(DIST_VER)
rm -rf $(DIST_VER)
distclean:
$(MAKE) -C src distclean
rm -f config.mk config.log tmp.c
install: butt
cp -fv src/butt $(DESTDIR)$(prefix)/bin/butt
uninstall:
rm -fv $(DESTDIR)$(prefix)/bin/butt
butt:
$(MAKE) -C src