forked from iPodLinux-Community/XMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
80 lines (63 loc) · 1.75 KB
/
Makefile
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Extended Module Player toplevel Makefile
# $Id: Makefile,v 1.33 2007/11/28 11:38:58 cmatsuoka Exp $
# DIST distribution package name
# DFILES standard distribution files
# DDIRS standard distribution directories
TOPDIR = .
XCFLAGS = -Iloaders/include
TEST_XM =
DIST = xmp-$(VERSION)
MODULES = anticipation.mod
DFILES = README INSTALL configure configure.in Makefile Makefile.rules.in \
$(MODULES)
DDIRS = lib docs etc src scripts
CFILES =
DCFILES = Makefile.rules.old config.log config.status config.cache
all: xmp
xmp:
cd src && $(MAKE)
include Makefile.rules
distclean::
rm -f Makefile.rules
configure: configure.in
autoconf
install-plugin:
$(MAKE) -C src/bmp install
install::
@echo
@echo " Installation complete. To customize, copy $(SYSCONFDIR)/xmp.conf"
@echo " and $(SYSCONFDIR)/xmp-modules.conf to \$$HOME/.xmp/"
@echo
uninstall:
rm -f $(BINDIR)/xmp
rm -f $(MANDIR)/xmp.1
rm -f $(SYSCONFDIR)/xmp.conf $(SYSCONFDIR)/xmp-modules.conf
# Extra targets:
# 'dist' prepares a distribution package
# 'mark' marks the last CVS revision with the package version number
# 'rpm' generates a RPM package
dist:
rm -Rf $(DIST) $(DIST).tar.gz
mkdir $(DIST)
$(MAKE) DISTDIR=$(DIST) subdist
cat Makefile.rules.in | \
sed "s/$(DATE)/`date`/" > $(DIST)/Makefile.rules.in
mv -f Makefile.rules.in Makefile.rules.old
cp $(DIST)/Makefile.rules.in .
chmod -R u+w $(DIST)/*
tar cvf - $(DIST) | gzip -9c > $(DIST).tar.gz
rm -Rf $(DIST)
./config.status
touch -r Makefile.rules.old Makefile.rules.in Makefile.rules
sync
ls -l $(DIST).tar.gz
mark:
cvs tag r`echo $(VERSION) | tr .- _`
Makefile.rules: Makefile.rules.in
@if [ -f config.status ]; then \
./config.status; \
else \
[ -f configure ] || autoconf; \
./configure; \
fi
$(OBJS): Makefile