src/clfswm-configuration.lisp (save-variables-in-conf-file): Save only variables...
[clfswm.git] / Makefile.template
blob866c6e7023dd39649de7d6447b314b595870d15a
1 # -*- makefile -*-
2 DESTDIR=+DESTDIR+
3 BUILD_PATH=+BUILD_PATH+
5 build:
6         @echo "Building"
7         chmod a+x $(BUILD_PATH)/clfswm
8         @echo ""
9         @echo "Type 'make install' to install clfswm in '$(DESTDIR)/bin/clfswm'"
10         @echo ""
12 install:
13         mkdir -p $(DESTDIR)/bin
14         rm -rf $(DESTDIR)/lib/clfswm/
15         mkdir -p $(DESTDIR)/lib/clfswm/src
16         mkdir -p $(DESTDIR)/share/doc/clfswm
17         cp $(BUILD_PATH)/clfswm $(DESTDIR)/bin
18         cp $(BUILD_PATH)/clfswm.asd $(DESTDIR)/lib/clfswm/
19         cp -R $(BUILD_PATH)/src/*.lisp $(DESTDIR)/lib/clfswm/src
20         cp -R $(BUILD_PATH)/contrib $(DESTDIR)/lib/clfswm/
21         cp -R $(BUILD_PATH)/doc/* $(DESTDIR)/share/doc/clfswm/
22         cp -R $(BUILD_PATH)/AUTHORS $(DESTDIR)/share/doc/clfswm/
23         cp -R $(BUILD_PATH)/COPYING $(DESTDIR)/share/doc/clfswm/
24         cp -R $(BUILD_PATH)/README $(DESTDIR)/share/doc/clfswm/
25         cp -R $(BUILD_PATH)/TODO $(DESTDIR)/share/doc/clfswm/
26         cp -R $(BUILD_PATH)/ChangeLog $(DESTDIR)/share/doc/clfswm/
27         @echo ""
28         @echo "clfswm has been installed in '$(DESTDIR)/bin/clfswm'"
29         @echo ""
32 uninstall:
33         rm -rf $(DESTDIR)/bin/clfswm
34         rm -rf $(DESTDIR)/lib/clfswm
35         rm -rf $(DESTDIR)/share/doc/clfswm
37 clean:
38         find . \( -name "*~" -o -name "*.fas" -o -name "*.fasl" -o -name "*.lib" -o -name "*.lx32fsl" -o -name "*.x86f" \) -print0 | xargs -0 rm -f
40 dist: clean
41         cd .. && tar czvf clfswm-`date +%y%m%d`.tar.gz clfswm
44 distclean: clean
45         rm -f clfswm Makefile