File: Makefile

package info (click to toggle)
xjokes 1.0-14
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 240 kB
  • ctags: 110
  • sloc: ansic: 1,194; makefile: 39
file content (28 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (4)
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
CFLAGS += -O
CPPFLAGS += -Wall
LOADLIBES = -lX11

progs = yasiti blackhole mori1 mori2

prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin

all: $(progs)

yasiti.o: yasiti.c u1.xbm u2.xbm u3.xbm u4.xbm

INSTALL = install
INSTALL_PROGRAM = $(INSTALL)

install: all
	mkdir -p $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $(progs) $(DESTDIR)$(bindir)/

uninstall:
	-cd $(DESTDIR)$(bindir) && rm -f $(progs)

clean:
	-rm -f $(progs) *.o

.PHONY: all install uninstall clean