summaryrefslogtreecommitdiff
path: root/Makefile
blob: d481a3d35e3a659f8467c1e8c46b7479dfdfff58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INSTALL = install
YACC = byacc

PROJECT = userland.gpr

GENERATED = bin/expr/expr.c

all: prepare
	gprbuild -P $(PROJECT) -p

clean:
	gprclean -P $(PROJECT) -p
	rm -f $(GENERATED)

install: all
	gprinstall -P $(PROJECT) -p --prefix=$(if $(DESTDIR),$(DESTDIR),/)
	$(INSTALL) -Dm0755 bin/false/false.sh $(DESTDIR)/bin/false
	$(INSTALL) -Dm0755 bin/true/true.sh $(DESTDIR)/bin/true

prepare: $(GENERATED)

.y.c:
	$(YACC) -o $@ $<