summaryrefslogblamecommitdiff
path: root/Makefile
blob: 1d58eafebab821fe8fc9eeff8f6c18cf041bcafc (plain) (tree)






















                                                                          
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 usr.bin/false/false.sh $(DESTDIR)/usr/bin/false
	$(INSTALL) -Dm0755 usr.bin/true/true.sh $(DESTDIR)/usr/bin/true

prepare: $(GENERATED)

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