forked from libxmp/libxmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.lite
48 lines (36 loc) · 1.23 KB
/
Makefile.lite
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
DIST = libxmp-lite-stagedir
DFILES = lite/README INSTALL install-sh configure configure.ac \
config.sub config.guess Makefile.in lite/libxmp-lite.pc.in \
libxmp.map lite/Makefile.vc.in
DDIRS = src loaders os2 test
all: dist
include lite/src/Makefile
include lite/src/loaders/Makefile
include test/Makefile
dist: dist-prepare vc-prepare dist-subdirs dist-dist check-no-it
mv $(DIST)/libxmp-lite-*.tar.gz .
ls -l libxmp-lite-*.tar.gz
dist-prepare:
rm -Rf $(DIST)
mkdir -p $(DIST)
cp -RPp $(DFILES) $(DIST)/
vc-prepare:
@echo Generate Makefile.vc
@sed -e 's!@OBJS@!$(subst /,\\,$(OBJS:.o=.obj))!' $(DIST)/Makefile.vc.in > $(DIST)/Makefile.vc
dist-subdirs: dist-makefile $(addprefix dist-,$(DDIRS))
(cd lite; tar cf - .) | (cd $(DIST); tar xf -)
mkdir -p $(DIST)/include/libxmp-lite
cp include/xmp.h $(DIST)/include/libxmp-lite/
mkdir -p $(DIST)/jni
cp jni/Application.mk $(DIST)/jni/Application.mk
dist-os2:
cp -pr src/os2 $(DIST)/src/
dist-makefile:
head -3 Makefile.in > lite/Makefile.in
cat lite/Makefile.in.in >> lite/Makefile.in
dist-dist:
(cd $(DIST); autoconf; ./configure)
$(MAKE) -C $(DIST) dist distcheck || false
check-no-it:
(cd $(DIST); autoconf; ./configure --disable-it)
$(MAKE) -C $(DIST) || false