Skip to content

Commit

Permalink
Add default make target giving instructions & add an install make target
Browse files Browse the repository at this point in the history
for modules shared system-wide in either /opt or /usr/lib/nim/site or
whatever /usr/include analogue a system package manager chooses.
  • Loading branch information
c-blake committed Aug 7, 2024
1 parent 60cb157 commit 17ffa65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ AT := $(AT_$V)
DIFF ?= diff # DIFF='diff -u' gmake | gmake DIFF='diff --color=auto' | etc.
SED ?= sed

.PHONY: test clean clean_cache
.PHONY: def install test clean clean_cache
export COLUMNS := 80
export CLIGEN_WIDTH := 80
export CLIGEN := /dev/null
Expand All @@ -36,6 +36,12 @@ TESTS_TOP_LVL_OUT := $(patsubst %,test/%TopLvl.out,\
RangeTypes SubScope)
OUT := test/out

def: ; @echo gmake test OR make install destdir=/usr/lib/nim/site

install: #For use ease,destdir should be in a nim install's default search path.
umask 022; mkdir -p "$(destdir)"
umask 022; cp -pr cligen.nim cligen "$(destdir)"

test: $(OUT)

clean:
Expand Down

0 comments on commit 17ffa65

Please sign in to comment.