Compare commits

..

No commits in common. "193103a9816d1b5010745cd70892e64e71fc9448" and "48dd623d7fd0e4aa5233d9f67fd551dfb1aa5f21" have entirely different histories.

4 changed files with 1 additions and 67 deletions

1
.gitignore vendored
View file

@ -52,4 +52,3 @@ Module.symvers
Mkfile.old
dkms.conf
bin/

View file

@ -1,37 +0,0 @@
.POSIX:
.SUFFIXES:
CC=cc
CFLAGS=-W -O
LDFLAGS=
LDLIBS=
PREFIX=/usr/local
all: ensure_bin journal
ensure_bin: bin
mkdir -p bin
install: journal
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f bin/journal $(DESTDIR)$(PREFIX)/bin
uninstall:
rm $(DESTDIR)$(PREFIX)/bin/journal
# currently we only have one journal util, others may come later
journal: src/journal/main.o
$(CC) $(LDFLAGS) -o bin/journal src/journal/main.o $(LDLIBS)
src/journal/main.o: src/journal/main.c
clean:
rm bin/journal src/journal/*.o
.SUFFIXES: .c .o
.c.o:
# $< mean the prereqs
# $@ means the target
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -1,16 +1,3 @@
# lunabot
journal-like util for me
## building
- a robot girl
- posix compliant make
- gcc/any cc
```
make
# or just remove PREFIX for /usr/local
make PREFIX=$HOME/.local install
```
journal-like util for me

View file

@ -1,15 +0,0 @@
#include <stdio.h>
int main(int argc, char** argv)
{
if(argc < 2)
{
printf("usage: %s topic message\n", argv[0]);
return 0;
}
char *topic = argv[1];
printf("%s\n", topic);
return 0;
}