diff options
author | Leah Neukirchen <leah@vuxu.org> | 2024-10-02 18:32:53 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2024-10-02 18:32:53 +0200 |
commit | 945bc437108bd0bec6ffbd4e62d2eb5a4e7ba941 (patch) | |
tree | 84522a2d1fba27b4c8e6901af434c12b80fcca51 /Makefile | |
download | ulidgen-945bc437108bd0bec6ffbd4e62d2eb5a4e7ba941.tar.gz ulidgen-945bc437108bd0bec6ffbd4e62d2eb5a4e7ba941.tar.xz ulidgen-945bc437108bd0bec6ffbd4e62d2eb5a4e7ba941.zip |
initial import of ulidgen
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b1a104d --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +ALL=ulidgen + +CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings + +DESTDIR= +PREFIX=/usr/local +BINDIR=$(PREFIX)/bin +MANDIR=$(PREFIX)/share/man + +all: $(ALL) + +ulidgen: ulidgen.o ulid.o +ulid.o: ulid.c ulid.h + +clean: FRC + rm -f $(ALL) *.o + +install: FRC all + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(ZSHCOMPDIR) + install -m0755 $(ALL) $(DESTDIR)$(BINDIR) + install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1 + +README: ulidgen.1 + mandoc -Tutf8 $< | col -bx >$@ + +FRC: |