diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-07 20:42:00 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-07 20:42:00 +0200 |
commit | 828ba846b5680020770a2404f4cfac61fe92de8c (patch) | |
tree | 8ecef2ddde2664cb9286e9125ed655f390bca2a8 /Makefile | |
parent | Use new version of cg-base (diff) | |
download | radharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.gz radharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.bz2 radharc-828ba846b5680020770a2404f4cfac61fe92de8c.tar.xz |
Add install and uninstall to makefile1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -20,6 +20,13 @@ $(OBJ): $(@:.o=.c) $(HDR) radharc: $(OBJ) $(CC) -o $@ $(OBJ) $(LDFLAGS) +install: radharc + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + cp radharc -- "$(DESTDIR)$(PREFIX)/bin" + +uninstall: + -rm -f -- "$(DESTDIR)$(PREFIX)/bin/radharc" + clean: -rm -f -- radharc *.o |