3 Commits

Author SHA1 Message Date
130525a868 Increment version 2026-03-23 21:10:28 -05:00
a6734c45ab Fix bug with nested / moduled c files not compiling (#30)
closes #29

Reviewed-on: http://192.168.1.227:3000/sfrembling/pallet/pulls/30
Co-authored-by: Shea Frembling <sfrembling@gmail.com>
Co-committed-by: Shea Frembling <sfrembling@gmail.com>
2026-03-23 20:09:19 -06:00
b14662a666 Update README.md 2026-03-23 17:03:58 -06:00
5 changed files with 15 additions and 7 deletions

2
Cargo.lock generated
View File

@@ -440,7 +440,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
[[package]]
name = "pallet"
version = "1.1.0"
version = "1.1.1"
dependencies = [
"clap",
"clap_complete",

View File

@@ -1,6 +1,6 @@
[package]
name = "pallet"
version = "1.1.0"
version = "1.1.1"
edition = "2024"
description = "A project manager and build system for C inspired by Rust's Cargo"

View File

@@ -1,6 +1,6 @@
# Maintainer: Shea Frembling <sfrembling@gmail.com>
pkgname=pallet
pkgver=1.1.0
pkgver=1.1.1
pkgrel=1
pkgdesc="A simple C project manager inspired by Cargo"
arch=('x86_64')

View File

@@ -72,3 +72,11 @@ args = [
"-O3",
]
```
## Creating Changelogs
Use the following command to create a changelog:
```sh
git log --oneline (git describe --tags --abbrev=0)..HEAD | sed 's/^/- /' | xclip -selection clipboard
```

View File

@@ -482,7 +482,7 @@ fn gen_compile_commands(mode: &Option<String>) -> std::io::Result<()> {
let cwd = std::env::current_dir()?;
let obj_dir = format!("target/{}/obj", build_config.name);
let source_files: Vec<PathBuf> = glob("src/*.c")
let source_files: Vec<PathBuf> = glob("src/**/*.c")
.map_err(|e| std::io::Error::new(std::io::ErrorKind::NotFound, format!("{e}")))?
.filter_map(|e| e.ok())
.collect();
@@ -665,7 +665,7 @@ fn build(mode: &Option<String>, force_recompile: bool) -> std::io::Result<()> {
.collect();
}
let source_files: Vec<PathBuf> = glob("src/*.c")
let source_files: Vec<PathBuf> = glob("src/**/*.c")
.map_err(|e| std::io::Error::new(std::io::ErrorKind::NotFound, format!("{e}")))?
.filter_map(|e| e.ok())
.collect();
@@ -814,7 +814,7 @@ fn clean() -> std::io::Result<()> {
}
fn fmt() -> std::io::Result<()> {
let source_files: Vec<PathBuf> = glob("src/*.c")
let source_files: Vec<PathBuf> = glob("src/**/*.c")
.map_err(|e| std::io::Error::new(std::io::ErrorKind::NotFound, format!("{e}")))?
.chain(
glob("src/*.h")
@@ -846,7 +846,7 @@ fn fmt() -> std::io::Result<()> {
fn lint() -> std::io::Result<()> {
gen_compile_commands(&None)?;
let source_files: Vec<PathBuf> = glob("src/*.c")
let source_files: Vec<PathBuf> = glob("src/**/*.c")
.map_err(|e| std::io::Error::new(std::io::ErrorKind::NotFound, format!("{e}")))?
.filter_map(|e| e.ok())
.collect();