-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (50 loc) · 1.33 KB
/
Copy pathMakefile
File metadata and controls
63 lines (50 loc) · 1.33 KB
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
include Rules.make
include config.make
VERTITLE := instead-$(VERSION)
ARCHIVE := instead_$(VERSION).tar.gz#
SUBDIRS += src/ stead games themes icon desktop doc lang
all:
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $(@) || exit 1; \
done;
test: all
tests/run.sh
Rules.make:
ln -sf Rules.make.standalone Rules.make
config.make:
echo "# you can define own flags here" > config.make
gitclean:
{ test -d .git && git status -s; } | grep "^??" | awk '{ print $$2 }' | grep -v "config.make" | grep -v "^doc/.*\.pdf$$" | while read l; do $(RM) -rf $$l; done
rules:
$(RM) -f Rules.make
ln -sf Rules.make.standalone Rules.make
docs: rules
make docs -C doc/
tarball: clean gitclean rules
echo "# you can define own flags here" > config.make
ln -sf ./ $(VERTITLE)
tar -cz --exclude $(VERTITLE)/$(VERTITLE) --exclude .git --exclude $(ARCHIVE) -f $(ARCHIVE) $(VERTITLE)/*
$(RM) -f $(VERTITLE)
clean:
@for dir in $(SUBDIRS); do \
$(MAKE) clean -C $$dir $(@) || exit 1; \
done;
$(RM) -f $(ARCHIVE)
$(RM) -f PKGBUILD
install: all
ifeq ($(SYSTEMSETUP), yes)
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install || exit 1; \
done;
else
echo No install needed
endif
uninstall:
ifeq ($(SYSTEMSETUP), yes)
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir uninstall || exit 1; \
done;
$(RM) -rf $(STEADPATH)
else
echo No uninstall needed
endif