-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
31 lines (23 loc) · 906 Bytes
/
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
HOSTNAME := $(shell hostname -s)
BUILDDIR = ../build
CURRENT := $(shell git rev-parse HEAD)
$(BUILDDIR)/emacs-config.tar.gz:$(BUILDDIR)/emacs-config-$(CURRENT).tar.gz
ln -s emacs-config-$(CURRENT).tar.gz emacs-config.tar.gz
mv emacs-config.tar.gz $@
$(BUILDDIR)/stumpwm-config.tar.gz:$(BUILDDIR)/stumpwm-config-$(CURRENT).tar.gz
ln -s stumpwm-config-$(CURRENT).tar.gz stumpwm-config.tar.gz
mv stumpwm-config.tar.gz $@
$(BUILDDIR)/stumpwm-config-$(CURRENT).tar.gz:
make -C stumpwm/ package
$(BUILDDIR)/emacs-config-$(CURRENT).tar.gz:
make -C emacs/ package
#############
# Shortcuts #
#############
all: $(BUILDDIR)/stumpwm-config.tar.gz $(BUILDDIR)/emacs-config.tar.gz docs/build/dirhtml/
push:
rsync -azrc build/*.tar.gz [email protected]:~/download/
clean:
rm -rf docs/build/dirhtml/
rm -rf $(BUILDDIR)/stumpwm-config.tar.gz
rm -rf $(BUILDDIR)/emacs-config.tar.gz