-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 870 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
32
33
34
35
VERSION ?= 9999
DESTDIR ?=
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
DATADIR ?= $(PREFIX)/share/pico-wayfire
MANDIR ?= $(PREFIX)/share/man/man1
INSTALL ?= install
CP ?= cp -a
SUBDIRS ?= fontconfig gtk mako nwg-launchers swappy \
terminator waybar wayfire
.PHONY: all clean install
all: pico-wayfire-setup
pico-wayfire-setup: pico-wayfire-setup.in
sed -e "s:@DATADIR@:$(DATADIR):" \
-e "s:@VERSION@:$(VERSION):" \
pico-wayfire-setup.in > pico-wayfire-setup
install: all
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(DATADIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(CP) $(SUBDIRS) wallpaper.jpeg $(DESTDIR)$(DATADIR)
$(INSTALL) -m644 man1/pico-wayfire-setup.1 $(DESTDIR)$(MANDIR)
ln -sf pico-wayfire-setup.1 $(DESTDIR)$(MANDIR)/pico-wayfire.1
$(INSTALL) -m755 pico-wayfire-setup -t $(DESTDIR)$(BINDIR)
clean:
rm -f pico-wayfire-setup