Refactor the build system
[archipelago] / xseg / xtypes / Makefile
1 .PHONY: default clean install install-src
2
3 include $(XSEG_HOME)/base.mk
4
5 FILES="Makefile"
6 FILES+=$(shell ls *.h)
7 FILES+=$(shell ls *.c)
8
9 SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
10
11 default:
12
13 clean:
14
15 install:
16
17 install-src:
18         install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
19         @for f in $(FILES) ; do \
20                 install -o 0 -g 0 -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
21         done
22