1 2 3 4 5 6 7 8 9 10 11 12 13 14
.POSIX: CFLAGS=-D _POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700 localedef: localedef.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< clean: -rm localedef install: localedef cp localedef $(DESTDIR)/usr/bin/localedef cp localedef.1 $(DESTDIR)/usr/share/man/man1/localedef.1